package com.mi.system.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Dict VO
 *
 * @author jin_huaquan
 * @version 1.0
 * @date 2021/11/2 17:05
 */
@ApiModel(value = "DictVO对象", description = "字典类型信息")
@Data
public class DictVO implements Serializable {

    @ApiModelProperty(value = "字典类型ID", required = true, dataType = "java.lang.String")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "字典类型", required = true)
    private String type;

    @ApiModelProperty(value = "字典描述", required = true)
    private String description;

    @ApiModelProperty(value = "是否为系统内置 @enum DictSystem[0(否),1(是)]", required = true)
    private Integer system;

    @ApiModelProperty("字典类型备注信息")
    private String remarks;

    @ApiModelProperty(value = "创建时间", required = true)
    private LocalDateTime createTime;
}
